<include file="common/header" />

<div class="main-container">
    <div class="container">
        <div class="content" id="goods-content">
            <div class="row mt20">
                <div class="clearfix mb25 pb30" style="border-bottom: 1px solid #DDD;">
                    <h3 class="title">订单详情</h3>
                    <a href="/user/support.html" class="pull-right ui-btn ui-btn-red ui-btn-mi">返回会员中心</a>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <table class="table table-bordered" id="order-table">
                        <tbody>
                        <if condition="($user_id neq $user['id'])">
                        <tr>
                            <td>购买人</td>
                            <td>{$user_name}</td>
                        </tr>
                        </if>
                        <tr>
                            <td>支持的众筹项目</td>
                            <td><a href="/deal/show.html?id={$deal_id}" style="color:blue;text-decoration: underline;" target="_blank">{$project_name}</a></td>
                        </tr>
                        <tr>
                            <td>支持的购买项</td>
                            <td><a href="/deal/show.html?id={$deal_id}" style="color:blue;text-decoration: underline;" target="_blank">{$item_title}</a></td>
                        </tr>
                        <tr>
                            <td>下单时间</td>
                            <td>{$create_time|date="Y-m-d H:i:s",###}</td>
                        </tr>
                        <tr>
                            <td>客户留言</td>
                            <td>{$support_memo}</td>
                        </tr>
                        <tr>
                            <td>订单价格</td>
                            <td>{$total_price}</td>
                        </tr>
                        <tr>
                            <td>快递费用</td>
                            <td>{$delivery_fee}</td>
                        </tr>

                        <tr>
                            <td>订单状态</td>
                            <td>
                                <if condition="($order_status eq 0)">
                                    <a href="/Cart/repay.html?id={$id}" style="color:blue;text-decoration: underline;" target="_blank">未支付</a>
                                <else />{$order_status_text}
                                </if>
                            </td>
                        </tr>
                        <if condition="($is_delivery eq 1)">
                            <tr>
                                <td>收件人</td>
                                <td>{$consignee}</td>
                            </tr>
                            <tr>
                                <td>邮编</td>
                                <td>{$zip}</td>
                            </tr>
                            <tr>
                                <td>联系电话</td>
                                <td>{$mobile}</td>
                            </tr>
                            <tr>
                                <td>地址</td>
                                <td>{$province}{$city}{$address}</td>
                            </tr>
                            <if condition="($express_status eq 1)">
                                <tr>
                                    <td>快递公司</td>
                                    <td>{$express_name}</td>
                                </tr>
                                <tr>
                                    <td>快递单号</td>
                                    <td>{$express_sn}</td>
                                </tr>
                            </if>
                        </if>

                        <tr>
                            <td>支付时间</td>
                            <td>
                                <!--<if condition="$pay_time gt 0">-->
                                    <!--<a href="/Cart/repay.html?id={$id}" target="_blank" style="color:blue;text-decoration: underline;">{$pay_time|date="Y-m-d H:i:s",###}</a>-->
                                <!--<else />-->
                                    <!--未支付-->
                                <!--</if>-->
                                <if condition="$pay_time gt 0">
                                {$pay_time|date="Y-m-d H:i:s",###}
                                <else />
                                未支付
                                </if>
                            </td>
                        </tr>
                        <tr>
                            <td>支付状态</td>
                            <td>{$order_status_text}</td>
                        </tr>
                        <if condition="($is_refund eq 1)">
                        <tr>
                            <td>是否退款</td>
                            <td>已退款</td>
                        </tr>
                        <else/>
                            <tr>
                                <td>订单是否完成</td>
                                <td><if condition="($is_success eq 1)">完成<else />进行中</if></td>
                            </tr>
                        </if>

                        </tbody>
                    </table>
                </div>
            </div>
        </div>

    </div>
</div>
<include file="common/footer" />